#include <stdio.h>

int main(void)
{
    int pid,ppid;

    pid=getpid();
    ppid=getppid();
    printf("\n SON: before sleep");
    printf("\n SON PARAM:  pid=%i  ppid=%i \n",pid,ppid);

    sleep(2);

    pid=getpid();
    ppid=getppid();
    printf("\n SON: after sleep");
    printf("\n SON PARAM:  pid=%i  ppid=%i \n",pid,ppid);

    system("ps f");

    return 0;
}


